import 'package:flutter/material.dart';
import 'package:heven/widget/button.dart';

class EmptyWidget extends StatelessWidget {
  const EmptyWidget({super.key});

  @override
  Widget build(BuildContext context) {
    double screenHeight = MediaQuery.of(context).size.height;

    return Positioned(
      top: screenHeight / 7,
      left: 0,
      right: 0,
      child: Column(
        children: [
          Image.asset(
            'assets/images/empty_icon.png',
            height: 59,
            width: 52,
          ),

          const Text(
            '还没有音乐，快去创作吧',
            style:
                TextStyle(color: Color(0xFF919191), fontSize: 15, height: 1.8),
          ),
          const SizedBox(height: 12),
          //  const ButtonWidget(width: 208,height: 44,name: '开始创作音乐',borderRadius: 15,fontSize: 14,)
          ButtonWidget(
            width: 224,
            height: 55,
            margin: const EdgeInsets.all(0),
            borderRadius: 15,
            child: const Text(
              '开始创作音乐',
              style: TextStyle(
                fontSize: 17,
                color: Color(0xFF000000),
                fontWeight: FontWeight.bold,
              ),
            ),
            onTap: () {
              Navigator.pushNamed(context, '/creation');
            },
          ),
          // CustomButton(
          //   text: 'Click Me',
          //   backgroundColor: Colors.pink,
          //   onPressed: () {
          //     print('Button clicked!');
          //   },
          // ),
        ],
      ),
    );
  }
}
